package org.smog.core.exception;

import lombok.Data;

/**
 * @Description: Created by IntelliJ IDEA.
 * @project_name: smogTemp
 * @time: 2020-05-15 15:45
 * @email: 17685306043@163.com
 * @author: huangZhongYao
 */
@Data
public class ApplicationException extends BaseException {
    /**
     * 实例化
     *
     * @param cause 源异常
     */
    public ApplicationException(Throwable cause) {
        super(cause);
        this.setCode(2000);
    }

    /**
     * 实例化
     *
     * @param message 消息
     */
    public ApplicationException(String message) {
        super(message);
        this.setCode(2000);
    }
}
